/*

  The contents of this file are subject to the Mozilla Public License Version
  1.1 (the "License"); you may not use this file except in compliance with
  the License. You may obtain a copy of the License at 
  
           http://www.mozilla.org/MPL/ 
  
  Software distributed under the License is distributed on an "AS IS" basis,
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  for the specific language governing rights and limitations under the License. 
  
  The Original Code is Tamina Framework.
  
  The Initial Developer of the Original Code is
  MOUTON David (aka damo)  <damo@tamina-online.com>.
  Portions created by the Initial Developer are Copyright (C) 2004-2007
  the Initial Developer. All Rights Reserved.
  
  Contributor(s) :
  
*/
package org.tamina.utils
{
	import flash.events.IEventDispatcher;
	
	/**
	 * Un RessourceBundle sert à charger et stocker des ressource multilingue
	 */	
	public interface RessourceBundle extends IEventDispatcher
	{
		
		/**
		 * Méthode qui sert à récupérer une ressource à partir d'une clé
		 * @param key
		 * @return 
		 * 
		 */		
		function getRessource(key:String):String;
		
		/**
		 *Méthode qui retourne un Array contenant les clés de toutes les ressources présente dans ce bundle
		 *@return un Array de String
		 */
		function getKeys():Array;
		
		/**
		 *Démarre le chargement des ressources en fonction de la langue envoyé en paramêtre 
		 *@param path : le chemin complet vers le fichier de ressource
		 */
		function loadRessource(path:String) : void;
	}
}